Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: refactor get address function #237

Conversation

xxxigm
Copy link

@xxxigm xxxigm commented Aug 21, 2024

Description

Refactor get address function
Example:
This pr adds user login function, includes:

1.Using Positive Condition: The refactored code checks if the address is valid (if (isAddress(...))), making it clearer and more readable compared to the original code's negative condition (if (!isAddress(...))).
2.Improved Error Handling: The refactored code uses new Error(...), which is best practice.
3.Enhanced Readability: Minor punctuation adjustments were made in the error message for better clarity.

Copy link
Collaborator

@bonnie57 bonnie57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @xxxigm ,

Thank you so much for your contribution and for taking the time to submit this PR! We really appreciate your effort and insights.

It looks like the code in this PR is outdated, and we’ve already refactored the code about this logic.

For now, I’ll go ahead and close this PR, but please don’t hesitate to reach out if you have any further suggestions or questions. Your contributions are always welcome!

Thanks again for your support and for helping us improve! 🚀

@bonnie57 bonnie57 closed this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants